<template>
  <div>
      <img :src="details.coverImgUrl" alt="">
      <div>{{details.name}}</div>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  data() {
    return {
      details:[]
    }
  },
  mounted() {
    console.log(this.$route.params.id);
    var id = this.$route.params.id
    axios.get(`http://122.112.161.135:3000/playlist/detail?id=${id}`).then(res=>{
      console.log(res.data.playlist);
      this.details = res.data.playlist
    })
  },
}
</script>

<style>

</style>